package project5;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class Tester1
{
	public static void main(String args[])
	{/*
		System.out.println("Creating a document indexer");
		ArrayList indexWords = new ArrayList();
		ArrayList wordList = new ArrayList();
		indexWords.add("a");
		indexWords.add("hello");
		indexWords.add("the");
		indexWords.add("and");

		wordList.add("a");
		wordList.add("hello");
		wordList.add("the");
		wordList.add("surabhi");

		DocumentIndexer di = new DocumentIndexer(indexWords);
		di.bitVectorCreator("/home/surabhi/Corpus/16/1600", wordList);*/
		
		try
		{
			String ds ="Surabhi";
			
			FileOutputStream fout = new FileOutputStream("/home/surabhi/DTI.out"); 
			ObjectOutputStream s = new ObjectOutputStream(fout); 
			s.writeObject(ds); 
			
			s.flush();
			fout.close();
		}
		catch (FileNotFoundException e)
		{
			e.printStackTrace();
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
	}

}
